package com.java.comprehensive.design.test.entity.dto;

import com.java.comprehensive.design.test.entity.po.Address;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户
 */
@Data
public class User implements Cloneable , Serializable {
	private static final long serialVersionUID = 164981242347987L;
    private String name;
    private Address address;
 
    // constructors, getters and setters
 
    @Override
    public User clone() throws CloneNotSupportedException {
        User user = (User) super.clone();
        user.setAddress(this.address.clone());
        return user;
    }

}